Skip to content

fix: add more logs to the exit path #926

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 10, 2025
Merged

Conversation

avallete
Copy link
Member

@avallete avallete commented Apr 9, 2025

So we can understand better what cause the ending of the container

So we can understand better what cause the ending of the container
@avallete avallete requested review from a team as code owners April 9, 2025 09:51
@avallete avallete requested a review from soedirgo April 9, 2025 09:51
adminApp.listen({ port: adminPort, host: PG_META_HOST }, (err) => {
if (err) {
app.log.error({ err }, 'Uncaught error in adminApp, exit(1)')
process.exit(1)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

note

This one I'm not sure, should we exit 1 in such case ? It seems like this would happen anyways since we'll pass by the hook 'onClose' 🤔

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let’s leave them in just to be safe?

@coveralls
Copy link

coveralls commented Apr 9, 2025

Pull Request Test Coverage Report for Build 14377261827

Details

  • 0 of 40 (0.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.3%) to 75.561%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/server/server.ts 0 40 0.0%
Files with Coverage Reduction New Missed Lines %
src/server/server.ts 1 0.0%
Totals Coverage Status
Change from base Build 14376455816: -0.3%
Covered Lines: 4984
Relevant Lines: 6516

💛 - Coveralls

@avallete avallete merged commit d64602f into master Apr 10, 2025
5 checks passed
@avallete avallete deleted the fix/add-graceful-exit-logging branch April 10, 2025 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants